﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HARTCalibrationTool.SerialPortManager
{
    public class TemperatureBoxSerialPort : SerialPortsBase
    {
        public TemperatureBoxSerialPort() { }

        public async Task SerialPortWrite(string cmdString)
        {
            await Task.Run(() => {
                if (_serialPort.IsOpen)
                {
                    _serialPort.WriteLine(cmdString);
                }
            });
        }
    }
}
